
function register(){
	var userName = $('#userName').val();
	var password = $('#password').val();
	var key = $('#Key').val();
	if(userName==null||userName==''){
		alert("不能为空");
	}
	$.ajax({
		url : base + "/BM/checkRegister.action",
		type : "post",
		data : {
			'userName':userName,
			'password':password,
			'key':key
		},
		cache : false,
		success : function(data) {
			if (!data.success) {
				$.messager.alert("提示信息", data.message, "info");
			} else {
				window.location.href=base + "/BM/login.action";
			}
			$.messager.progress('close');
		},
		async : false
	});
}